<!-- 实地探盘子组件 -->
<template>
  <a :href="href" class="fieldItem">
    <img :src="img" />
    <p>{{title}}</p>
  </a>
</template>

<script>
import { defineComponent } from 'vue'
export default defineComponent({
  props: {
    href: {
      typeof: String,
      default: 'javascript:;'
    },
    img: {
      typeof: String,
      default: ''
    },
    title: {
      typeof: String,
      default: '【增城】科教城新盘热炸广州！67平三房，央企出手，正地铁盘！'
    }
  }
})
</script>

<style lang="less" scoped>
a {
  display: block;
  width: 244px;
  margin-bottom: 12px;
  img {
    width: 244px;
    height: 160px;
    margin-bottom: 8px;
  }
  p {
    display: block;
    width: 244px;
    height: 56px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
</style>
